/**
 * 租户客户 用户管理(客户使用)
 */

import request from '@/utils/request'

/**
 * 租户自建客户管理（basic_data_tenant_customer）
 * @param {*} params 
 */
export function tenantOptions(params = {}) {
  params = {tenantType:'CUSTOMER',...params}
  return request({
    url: '/system/tenant/optionSelect',
    method: 'get',
    params: params
  })
}

/**
 * 租户自建客户列表（basic-data:tenant-customer:list）
 * @param {*} params 
 */
export function tenantCustomerList(params = {}) {
  return request({
    url: '/basic/data/tenant/customer/list',
    method: 'get',
    params: params
  })
}

/**
 * 租户自建客户新增（basic-data:tenant-customer:add）
 * @param {*} params 
 */
export function tenantCustomerAdd(params = {}) {
  return request({
    url: '/basic/data/tenant/customer/add',
    method: 'post',
    data: params
  })
}

/**
 * 租户自建客户修改（basic-data:tenant-customer:update）
 * @param {*} params 
 * @returns 
 */
export function tenantCustomerUpdate(params = {}) {
  return request({
    url: '/basic/data/tenant/customer/update',
    method: 'post',
    data: params
  })
}

/**
 * 租户自建客户查询详情（basic-data:tenant-customer:detail
 * @param {*} params 
 */
export function tenantCustomerDetail(params = {}) {
  return request({
    url: '/basic/data/tenant/customer/queryTenantCustomerById',
    method: 'get',
    params: params
  })
}

/**
 * 客户类型列表（basic-data:tenant-customer:type-list）
 * @param {*} params 
 */
export function customerTypeList(params = {}) {
  return request({
    url: '/basic/data/tenant/customer/customerTypeList',
    method: 'get',
    params: params
  })
}

